package com.zrgj.manager.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zrgj.domain.Brand;
import com.zrgj.manager.mapper.BrandMapper;
import com.zrgj.manager.service.IBrandService;
import org.springframework.stereotype.Component;

import java.util.List;

@Service
@Component
public class BrandServiceImpl implements IBrandService {
    private BrandMapper brandMapper;

    public BrandServiceImpl(BrandMapper brandMapper) {
        this.brandMapper = brandMapper;
    }

    @Override
    public void insertBrand(Brand brand) {
        brandMapper.insertBrand(brand);
    }

    @Override
    public List<Brand> selectBrandList() {
        return brandMapper.selectBrandList();
    }
}
